package javabasics.designpattern.decorator;

/**
 * PacketBodyCreator
 * 用于返回数据包的核心数据
 *
 * @Author suxiaoxiao
 * @Date 2019/6/1 15:35
 * @Version 1.0
 */
public class PacketBodyCreator implements IPacketCreator {

    protected String content;

    public PacketBodyCreator(String content) {
        this.content = content;
    }

    /**
     * 构造核心数据
     * @return
     */
    @Override
    public String handleContent() {
        return content;
    }

}
